package JAVASE520;

public class goods {
    private String ID;
    private String name;
    private double price;
    private int inventory;
    //空参
    public goods(){
    }
    //带参
    public goods(String ID,String name,double price,int inventory){
        this.ID=ID;
        this.name=name;
        this.price=price;
        this.inventory=inventory;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getInventory() {
        return inventory;
    }

    public void setInventory(int inventory) {
        this.inventory = inventory;
    }

}
